import request from '@/utils/request'

// 查询订单信息统计列表
export function listOrderInfoStatistics(query) {
  return request({
    url: '/purchase/orderInfoStatistics/getStaticsByCode',
    // url: '/purchase/orderInfoStatistics/list',
    method: 'get',
    params: query
  })
}

// 查询订单信息统计详细
export function getOrderInfoStatistics(id) {
  return request({
    url: '/system/orderInfoStatistics/' + id,
    method: 'get'
  })
}

// 新增订单信息统计
export function addOrderInfoStatistics(data) {
  return request({
    url: '/system/orderInfoStatistics',
    method: 'post',
    data: data
  })
}

// 修改订单信息统计
export function updateOrderInfoStatistics(data) {
  return request({
    url: '/system/orderInfoStatistics',
    method: 'put',
    data: data
  })
}

// 删除订单信息统计
export function delOrderInfoStatistics(id) {
  return request({
    url: '/system/orderInfoStatistics/' + id,
    method: 'delete'
  })
}
